


var eventBus = {};


function init(options){
    eventBus = options.eventBus;
}

function revole(res){

    if (res.code == '00000') {
        setTimeout(function () {
            eventBus.$route.router.go('/user/sign-contract');
        }, 2000);
    }

    if (res.msg == '请登录') {
        setTimeout(function () {
            eventBus.$route.router.go('/login')
        }, 1500);
    }

}

export default {
    init,
    revole
}
